package com.seven.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Controller:受容器管理
 */
@Controller
public class HelloController {
    /**
     * @return
     * @ResponseBody:返回json
     * @RequestMapping("/hello")：请求的路由
     */
    @ResponseBody
    @RequestMapping("/hello")
    public String hello() {
        return "Hello World!";
    }
}
